package com.zzx.exception;


public enum ExceptionState {
     OK(200,"创建成功"),
    CREATED(201,"用户创建成功"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"权限不足"),
    USERNAMEPASSWORD(601,"用户名或者密码错误"),
    UNPASSWORD(602,"密码错误"),
    NONUSER(603,"用户不存在"),
    NOUPDATE(604,"更新数据失败"),
    USERNAMECANNOTBEEMPTY(605,"用户名不能为空"),
    PASSWORDCANNOTBEEMPTY(605,"密码不能为空"),
    NOISADDUSER(606,"用户添加失败"),
    NODELETE(607,"删除失败"),
    PARAMETERISINVALID(608,"参数不合法"),
    UNROLENAME(609,"角色名称不能为空"),
    UNCRESTEROLE(610,"角色创建失败"),
    PARENTCATEGORIES(611,"分类父id不能为空"),
    CATEGORIESNAME(611,"分类名称不能为空"),
    CATEGORIESLEVEL(611,"分类层级不能为空"),
    UNQUERYPARAMS(612,"查询参数失败"),
    FAILTOUPLOAD(613,"上传失败"),
    AUTHENICATIONEXCEPTION(666,"授权异常"),
    UNLOGINUSERNSME(614,"用户未登录"),
    UNKNOWN(999,"未知异常");


    private Integer status;
        private String describe;

        public  Integer getStatus(){
            return this.status;
        }
        public  String getDescribe(){
            return this.describe;
        }
      ExceptionState(Integer status,String describe){
          this.status = status;
          this.describe= describe;
     }


}
